/**
 * com.monte.permission.controller.PermissionItemListController.java
 * create by FengMy from 2013
 */
package com.monte.permission.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.monte.entity.CoreEntity;
import com.monte.permission.model.PermissionItem;
import com.monte.permission.service.PermissionItemService;
import com.monte.web.framework.controller.TreeListController;

/**
 * @描述:权限项列表界面Controller
 * @author FengMy
 * @since 2013-3-26
 */
@Controller
@RequestMapping(value="/permission/permissionItem/*")
public class PermissionItemListController extends TreeListController {
	@Autowired
	private PermissionItemService permissionItemService;
	@Override
	protected String getTreeDataMapper() {
		return null;
	}

	@Override
	protected String getSimpleTreeDataMapper() {
		return null;
	}

	@Override
	protected CoreEntity createNewEntity() {
		return new PermissionItem();
	}

	@Override
	protected String getListView() {
		return "permission/permissionItemList";
	}

	@Override
	protected String getEditView() {
		return "permission/permissionItemEdit";
	}

	@Override
	protected String getListMapper() {
		return "com.monte.permission.PermissionItemDao.select";
	}

	@Override
	protected PermissionItemService getService() {
		return permissionItemService;
	}
	
	@Override
	protected String getTreeEditView() {
		return "permission/permissionGroupEdit";
	}
}
